package com.lebang.medicalInquiry.mapper;

import com.lebang.medicalInquiry.model.po.Organization;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.lebang.medicalInquiry.model.vo.OrganizationVo;
import com.lebang.medicalInquiry.model.vo.admin.OrganizationListVo;

@Mapper
public interface OrganizationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Organization record);

    int insertSelective(Organization record);

    Organization selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Organization record);

    int updateByPrimaryKey(Organization record);

    List<OrganizationVo> getOrganizationListByPId(@Param("physicianId") Integer physicianId);

    Integer count(@Param("keyWord") String keyWord, @Param("state") Integer state);

    List<OrganizationListVo> getList(@Param("keyWord") String keyWord, @Param("state") Integer state, @Param("page") Integer page, @Param("limit") Integer limit);
}